Notes re compiling version 1.7.2 p29 under Win32
------------------------------------------------

by Nick Gammon <nick@gammon.com.au>

19th Feb 2000


1. Added files pennmush.dsp and pennmush.dsw to pennmush directory.
2. Added .\pennmush\hdrs to search path for hdrs in Visual Studio - put at *start* of directory list, otherwise a different version.h file will be found
3. Copied config.h, confmagic.h and options.h from earlier version to hdrs directory
4. Copied cmds.h and funs.h from earlier version to hdrs directory
5. Added to cmnds.h:
	COMMAND_PROTO(cmd_logwipe);
5. Added to funs.h:
	FUNCTION_PROTO(fun_regmatchi);
6. Copied file local.c from an earlier version to the src directory.

7. Amended shs.h to new version with "reverse_wanted" field.
8. Put reverse SHS stuff back into conf.h, conf.c, mycrypt.c, as follows:

a. Add to the options table in conf.c:
  {"reverse_shs", cf_bool, &options.reverse_shs, 2, 0, "attribs"},
b. Initialise it in conf_default_set in conf.c:
  options.reverse_shs = 1;
c. Put it into the options_table structure in conf.h: 
  int reverse_shs;
d. Move it into the SHS_INFO structure in mycrypt.c:
  shsInfo.reverse_wanted = options.reverse_shs;
e. Add it to the SHS_INFO structure in shs.h:
  BYTE reverse_wanted;  /* true to reverse (little_endian) false to not */
f. In four places in SHS.C put the option in front of "byte_reverse" like this:
  if (shsInfo->reverse_wanted)
    byteReverse (shsInfo->data, SHS_DIGESTSIZE);

9. Added the following prototypes to game.h:

Suggest adding the following to game.h:

extern int init_game_dbs _((const char *conf));
extern int init_game_config _((const char *conf));


10. Add game.h to front of bsd.c, to include the above prototypes:
  #include "game.h"

11. The function do_new_spitfile was prototyped differently in game.h and at the top of bsd.c.
I have omitted the prototype from the top of bsd.c, and changed the function body to match the prototype in game.h (specifically, by adding the word "const" twice), like this:

void
do_new_spitfile(player, arg1, index_file, text_file, restricted)
    dbref player;
    char *arg1;
    const char *index_file;
    const char *text_file;
    int restricted;		/* 1 = admin help, 0 = regular help */

